<?php

class Common_Mixin_DataGateway
{

    private $obj_datagateway = null;

    public function __construct(Common_DataGateway_Database $obj_datagateway)
    {
        $this->setDataGateway($obj_datagateway);
    }

    public function setDataGateway($obj_datagateway)
    {
        $this->obj_datagateway = $obj_datagateway;
    }

    public function getDataGateway()
    {
        return $this->obj_datagateway;
    }

    public function setLogger(Zend_Log $obj_logger)
    {
        $this->getDataGateway()->setLogger($obj_logger);
    }

}
